package tum0r.utils;

/**
 * 工程: SQLTool<br>
 * 包: tum0r.utils<br>
 * 创建者: tum0r<br>
 * 创建时间: 2021/6/22 11:34<br>
 * <br>
 */
public class TypeExtension {
    /**
     * 判断是否为基本类型或String类型
     */
    public static boolean isPrimitive(Class<?> c) {
        return c.isPrimitive() ||
                c == String.class ||
                c == Boolean.class ||
                c == Byte.class ||
                c == Short.class ||
                c == Integer.class ||
                c == Long.class ||
                c == Float.class ||
                c == Double.class ||
                c == Character.class;
    }
}
